package com.rht.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;

/**
 * spu信息
 * 
 * @author rht
 * @email 3171138599@qq.com
 * @date 2024-11-06 16:07:04
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("pms_spu_info")
public class SpuInfoEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 商品id
	 */
			@TableId
			private Long id;

	/**
	 * 商品名称
	 */
			private String spuName;

	/**
	 * 商品描述
	 */
			private String spuDescription;

	/**
	 * 所属分类id
	 */
			private Long catalogId;

	/**
	 * 品牌id
	 */
			private Long brandId;

	/**
	 * 
	 */
			private BigDecimal weight;

	/**
	 * 上架状态[0 - 下架，1 - 上架]
	 */
			private Integer publishStatus;

	/**
	 * 
	 */
			   @DateTimeFormat(pattern = "yyyy-MM-dd")
		private Date createTime;

	/**
	 * 
	 */
			   @DateTimeFormat(pattern = "yyyy-MM-dd")
		private Date updateTime;


}
